package de.sonnentempel.view;

import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import net.miginfocom.swing.MigLayout;

import org.jdesktop.swingx.JXLabel;
import org.jdesktop.swingx.JXTextArea;

import javax.swing.JComboBox;

import org.jdesktop.swingx.JXTable;
import org.jdesktop.swingx.JXTextField;

import javax.swing.JButton;

import org.jdesktop.swingx.JXButton;
import org.jdesktop.swingx.JXDialog;
import org.jdesktop.swingx.JXTitledSeparator;
import org.jdesktop.swingx.JXDatePicker;
import org.jdesktop.swingx.painter.AlphaPainter;
import org.jdesktop.swingx.JXMonthView;

public class BesuchView extends JDialog {

	/**
	 * Launch the application.
	 * @throws UnsupportedLookAndFeelException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					BesuchView frame = new BesuchView();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public BesuchView() {
		setBounds(100, 100, 400, 350);
		getContentPane().setLayout(new MigLayout("", "[left][grow]", "[][][][][][][grow][][150px][][]"));
		
		JXLabel lblVorname = new JXLabel();
		lblVorname.setText("Vorname");
		getContentPane().add(lblVorname, "cell 0 0,alignx trailing");
		
		JXTextField textField_1 = new JXTextField();
		textField_1.setEditable(false);
		getContentPane().add(textField_1, "cell 1 0,growx");
		
		JXLabel lblNachname = new JXLabel();
		lblNachname.setText("Nachname");
		getContentPane().add(lblNachname, "cell 0 1,alignx trailing");
		
		JXTextField textField_2 = new JXTextField();
		textField_2.setEditable(false);
		getContentPane().add(textField_2, "cell 1 1,growx");
		
		JXLabel lblDauer = new JXLabel();
		lblDauer.setText("Dauer");
		getContentPane().add(lblDauer, "cell 0 3,alignx right");
		
		JXTextField textField = new JXTextField();
		getContentPane().add(textField, "cell 1 3,growx");
		
		JXLabel lblBank = new JXLabel();
		lblBank.setText("Bank");
		getContentPane().add(lblBank, "cell 0 4,alignx right");
		
		JComboBox comboBox = new JComboBox();
		getContentPane().add(comboBox, "cell 1 4,growx");
		
		JXLabel lblDatum = new JXLabel();
		lblDatum.setText("Datum");
		getContentPane().add(lblDatum, "cell 0 5,alignx right");
		
		JXDatePicker datePicker = new JXDatePicker();
		getContentPane().add(datePicker, "cell 1 5,growx");
		
		JXTitledSeparator titledSeparator = new JXTitledSeparator();
		titledSeparator.setTitle("Letzte Besuche");
		getContentPane().add(titledSeparator, "cell 0 6 2 1,growx,aligny top");
		
		JXTable table = new JXTable();
		getContentPane().add(table, "cell 0 8 2 1,grow");
		
		JXButton btnHinzufgen = new JXButton();
		btnHinzufgen.setText("Hinzuf\u00FCgen");
		getContentPane().add(btnHinzufgen, "flowx,cell 1 9,alignx right");
		
		JXButton btnAbbrechen = new JXButton();
		btnAbbrechen.setText("Abbrechen");
		getContentPane().add(btnAbbrechen, "cell 1 9,alignx right");

	}

}

